package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

import java.util.List;

@Mapper
public interface NursingPlanMapper {
    /**
     * 新增护理计划
     */

    void insert(NursingPlan nursingPlan);

    /**
     * 删除护理计划
     */
    void deleteById(Long id);

    /**
     * 修改计划
     *
     */

    void update(NursingPlan nursingPlan);

    /**
     *根据id查询
     */
    NursingPlan selectById(Long id);

    /**
     * 查询所有计划
     *
     */
    List<NursingPlan> selectAll();

    /**
     *
     * 条件分页查询
     *
     */
    Page<NursingPlanVo> selectPlan(String name,Integer status);

    /**
     *
     */

    void updateStatus(Long id,Integer status);



}
